home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-03-18 | 1.3 KB | 47 lines | [TEXT/R*ch] |
- /*
- Sample ICI script for NetFinder.
-
- This script is executed at periodic intervals.
-
- NOTES:
- o Full ICI programming syntax can be obtained from
- <http://www.zeta.org.au/~atrn/ici/documentation.html>
- o A standalone ICI app ported to MacOS will be available
- for free once I (Peter) have time to clean everything up.
- o A Metrowerks ICI Compiler plugin will also be available
- for free when I have cleaned things up.
- If you want what I have as it stands, just email me.
-
- (c) Copyright 2000 Peter Li.
- */
-
- /* get the current time */
- auto time = calendar(now());
- auto timeStr;
-
- /* format the current time to the way we want it */
- timeStr = sprintf("%d-%d-%d, %02d:%02d:%02f", time.day,
- time.month + 1, time.year,
- time.hour, time.minute, time.second);
-
- /* print out the date/time */
-
- //printf("Periodical Script Executed [" + timeStr + "]\n");
-
-
-
- /*
- The above routine is commented out. To uncomment simply remove
- the double slash at the start of the line.
-
- NOTE: ICI by default does not support C++ style comments like above.
- If the changes are allowed to be merged into the ICI source tree
- then it may become a part of the standard ICI syntax.
- */
-
- //NFSetICIPeriodicalTime(5);
-
- //NFSendEngineFTPCommand("NOOP");
- //NFSendEngineFTPCommand("CWD .");
- //NFSendEngineFTPCommand("SYST", "192.168.1.8");
-